import { Component, OnInit } from '@angular/core';
import { LazyLoadEvent } from 'primeng/components/common/api';

import { User } from '../../../core/auth/user.service';
import { CommonComponent } from '../../../core/common/common.component';
import { CommonService } from '../../../core/common/common.service';
import { ChannelService } from '../service/channel.service';

const styles = `

`;
@Component({
  selector: 'ncloud-channel-quato',
  templateUrl: './quato.html',
  styles: [styles]
})
export class Quato extends CommonComponent implements OnInit {
  public customers: Array<any>;
  public totalRecords: number;
  public products: Array<any> = [{}, {}];
  constructor(private common: CommonService, public user: User, private channelService: ChannelService) {
    super();
    if (!this.data) {
      this.data = {};
      this.data.chnlType = '1';
    }
  }
  writeValue(value) {
    super.writeValue(value);
    console.log(JSON.stringify(this.data));
  }
  ngOnInit() {
    super.ngOnInit();

  }
}
